import 'package:bookshelf/generated/json/base/json_convert_content.dart';
import 'package:bookshelf/entity/inventory_request_entity.dart';

InventoryRequestEntity $InventoryRequestEntityFromJson(Map<String, dynamic> json) {
	final InventoryRequestEntity inventoryRequestEntity = InventoryRequestEntity();
	final String? rfid = jsonConvert.convert<String>(json['rfid']);
	if (rfid != null) {
		inventoryRequestEntity.rfid = rfid;
	}
	final String? initPlace = jsonConvert.convert<String>(json['init_place']);
	if (initPlace != null) {
		inventoryRequestEntity.initPlace = initPlace;
	}
	final String? currPlace = jsonConvert.convert<String>(json['curr_place']);
	if (currPlace != null) {
		inventoryRequestEntity.currPlace = currPlace;
	}
	final String? state = jsonConvert.convert<String>(json['state']);
	if (state != null) {
		inventoryRequestEntity.state = state;
	}
	return inventoryRequestEntity;
}

Map<String, dynamic> $InventoryRequestEntityToJson(InventoryRequestEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['rfid'] = entity.rfid;
	data['init_place'] = entity.initPlace;
	data['curr_place'] = entity.currPlace;
	data['state'] = entity.state;
	return data;
}